package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_service_combo_order")
@ApiModel(value="t_service_combo_order对象", description="服务套餐工单列表")
public class ServiceComboOrder extends BaseEntity {

    private static final long serialVersionUID=1L;

    @OperateLogFiled(name = "服务套餐ID")
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "服务项编码 1-sos报警器 2-漏水报警 3-烟雾报警 4-门锁报警")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "智慧厨房报警信息主键id")
    @TableField("alarm_record_id")
    private String alarmRecordId;

    @ApiModelProperty(value = "智慧厨房设备ID")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "设备名称")
    @TableField("device_name")
    private String deviceName;

    @ApiModelProperty(value = "设备类型")
    @TableField("device_type")
    private Integer deviceType;

    @ApiModelProperty(value = "报警类型")
    @TableField("alarm_type")
    private Integer alarmType;

    @ApiModelProperty(value = "报警时间")
    @TableField("alarm_time")
    private Date alarmTime;

    @ApiModelProperty(value = "报警结束时间")
    @TableField("alarm_end_time")
    private Date alarmEndTime;

    @ApiModelProperty(value = "户号")
    @TableField("subs_code")
    private String subsCode;

    @ApiModelProperty(value = "SOS报警次数（30分钟")
    @TableField("alarm_count")
    private Integer alarmCount;

    @ApiModelProperty(value = "安装位置（智慧厨房对应字段roomName）")
    @TableField("install_position")
    private String installPosition;

    @ApiModelProperty(value = "套餐id t_service_combo.id")
    @TableField("combo_id")
    private Integer comboId;

    @ApiModelProperty(value = "套餐详情id t_service_combo_detail.id")
    @TableField("combo_detail_id")
    private Integer comboDetailId;

    @ApiModelProperty(value = "用户手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "外部订单ID")
    @TableField("third_order_id")
    private String thirdOrderId;

    @ApiModelProperty(value = "外部订单号")
    @TableField("third_order_no")
    private String thirdOrderNo;

    @ApiModelProperty(value = "外部订单状态")
    @TableField("third_order_status")
    private String thirdOrderStatus;

    @ApiModelProperty(value = "外部工单额外信息")
    @TableField("third_order_ext")
    private String thirdOrderExt;

    @ApiModelProperty(value = "是否自动转工单0:否（手动） 1:是（自动）")
    @TableField("is_auto")
    private Integer isAuto;

    @ApiModelProperty(value = "服务人员联系电话")
    @TableField("third_order_servicer_phone")
    private String thirdOrderServicerPhone;

    @ApiModelProperty(value = "服务人员姓名")
    @TableField("third_order_servicer_name")
    private String thirdOrderServicerName;

    @ApiModelProperty(value = "上门服务时间")
    @TableField("third_order_service_begin_time")
    private String thirdOrderServiceBeginTime;

    @ApiModelProperty(value = "工单状态 0:服务取消 1：服务中 2:服务完成")
    @TableField("order_status")
    private Integer orderstatus;

}
